﻿<Window x:Class="AutoLoL.Dialogs.ImportDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:AutoLoL.Controls"
        Title="Import"
        Height="150"
        Width="405"
        Icon="/Icon.ico"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterOwner">
    <DockPanel LastChildFill="True" Margin="10">
        <Grid DockPanel.Dock="Bottom" Margin="0 10 0 0">
            <StackPanel Orientation="Horizontal" Name="LoadingStackPanel" Visibility="Hidden">
                <controls:LoadingControl Width="20" HorizontalAlignment="Left" />
                <TextBlock Text="Loading..." VerticalAlignment="Bottom" Margin="5 0 0 0" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Button Name="ImportButton" Content="Import" Width="75" Height="23" Click="ImportButton_Click" />
                <Button Name="CancelButton" Content="Cancel" Height="23" Width="75" Margin="10 0 0 0" Click="CancelButton_Click" />
            </StackPanel>
        </Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="25" />
                <RowDefinition Height="28" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="90" />
                <ColumnDefinition Width="272" />
            </Grid.ColumnDefinitions>

            <TextBlock Text="Input / url:" VerticalAlignment="Center" Grid.Row="0" Grid.Column="0" />
            <TextBlock Text="Source:" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" />
            
            <TextBox Name="InputTextBox" Grid.Column="1" Grid.Row="0" Margin="0 2 0 0" Width="270" KeyUp="InputTextBox_KeyUp" />

            <ComboBox Name="SourceComboBox" SelectedIndex="0" Margin="0 2 0 0" Width="180" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <Image Width="16" Height="16" Source="{Binding Icon}" />
                            <TextBlock Text="{Binding Name}" FontSize="12" Margin="2" />
                        </StackPanel>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
        </Grid>
    </DockPanel>
</Window>
